<?php get_header(); ?>
<?php $values = get_post_custom_values("featured-video");
	if (is_array($values)) {?>
<div id="sub-navs">
<?php include (TEMPLATEPATH . '/featured-video.php'); ?>
<?php include (TEMPLATEPATH . '/followerme.php'); ?>
</div>
</div>
<div id="post-entry">
<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>

<div class="post-meta" id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1>



<div class="post-author">
<?php the_time('l, F jS Y') ?>&nbsp;&nbsp;&nbsp;<?php edit_post_link('edit');?>

<?php 

the_category_ID();

?>
</div>

<div class="post-under">
<?php if(function_exists("UTW_ShowTagsForCurrentPost")) : ?><?php UTW_ShowTagsForCurrentPost("commalist", array('last'=>' and %taglink%', 'first'=>'Tags: %taglink%',)) ?><?php else : ?><?php if(function_exists("the_tags")) : ?><?php the_tags() ?><?php endif; ?><?php endif; ?>
</div>
<?php $values = get_post_custom_values("featured-images-l");
 
if ( is_array($values)) : ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php echo "$values[0]"; ?>" width="400px" height="250px" class="full" alt="<?php the_title(); ?>" /></a>
<?php else : ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/no_img_l.png" width="400px" height="250px" class="full" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>


<div class="post-content">
<?php the_content(); ?>
<?php wp_link_pages('before=<div class="page-links">&after=</div>'); ?>  
</div>


</div>

<?php endwhile; ?>

<?php endif; ?>

 </div>

<div id="sidebar-wrap-single">

<?php include (TEMPLATEPATH . '/sidebar-main-single.php'); ?>
<?php include (TEMPLATEPATH . '/sidebar-right-single.php'); ?>
</div>
<?php 	;
}else{
	 include(TEMPLATEPATH . '/single-old.php'); 
}?>
<?php get_footer(); ?>